package net.xinshi.model;

import net.xinshi.utils.TidManager;
import org.apache.commons.lang3.StringUtils;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/29.
 */
public class BasePageInputDTO extends BaseInputDTO {
    private static final long serialVersionUID = -8298304529850029530L;
    private Integer pageSize;
    private Integer start;


    public final Integer getPageSize() {
        return pageSize;
    }

    public final void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }


    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public BasePageInputDTO() {
        if (StringUtils.isBlank(this.getTransactionUuid())) {
            this.setTransactionUuid(TidManager.getTransactionUuid());
        }
    }
}
